using dbvc.context;
using dbvc.context.Activity;
using dbvc.data;
using dbvc.Queries;
using NUnit.Framework;

namespace tdd.dbvc
{
    public partial class tests
    {
        [Test]
        public void check_activity()
        {
            root_login();
            
            del_activity();

            add_users();

            Assert.AreEqual(3, GenericQuery<db_activity>.Count());
        }

        [Test]
        public void del_activity()
        {
            root_login();
            
            new DeleteActivity(security.Principal, GenericQuery<db_activity>.GetAll()).Execute();

            Assert.AreEqual(0, GenericQuery<db_activity>.Count());
        }
    }
}